CC = g++

CC_DEBUG = $(CC) -g
CC_RELEASE = $(CC) -O3 -DNDEBUG

all: mytest test bench image

mytest : mytest.cpp GContext0.cpp
	$(CC_DEBUG) mytest.cpp GContext0.cpp -o mytest

test : test.cpp GContext0.cpp
	$(CC_DEBUG) test.cpp GContext0.cpp -o test

bench : bench.cpp GTime.cpp GContext0.cpp
	$(CC_RELEASE) bench.cpp GTime.cpp GContext0.cpp -o bench

image : image.cpp GBitmap.cpp GContext0.cpp
	$(CC_DEBUG) image.cpp GBitmap.cpp GContext0.cpp -lpng -o image

xapp : xapp.cpp GContext0.cpp

clean:
	rm -rf mytest test bench image xapp GContext.o mytest.o *.dSYM

